package com.chen.service;

import com.chen.pojo.common.PageResult;
import com.chen.pojo.dto.PolicyDto;
import com.chen.pojo.entry.Policy;
import com.chen.pojo.vo.PolicyDetailsVo;

/**
 * @author chen
 * @version 1.0
 * @create_date 2025/8/22
 * 策略管理接口
 */
public interface PolicyService {
    PageResult<Policy> searchList(Integer pageIndex, Integer pageSize, String policyName);

    PageResult<PolicyDetailsVo> getVmInfoByPolicyId(Integer pageIndex, Integer pageSize, Integer policyId);

    Boolean updatePolicyById(Integer policyId, PolicyDto policyDto);

    Boolean deleteById(Integer policyId);

    Boolean add(PolicyDto policyDto);
}
